<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>Virtual Office SCI SO</title>
    <link rel="shortcut icon" href="favicon.ico" />
    <link href="{{URL::to('/css/style.css')}}" rel="stylesheet" />
    <link href="{{URL::to('/css/bootstrap.css')}}" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" media="screen" href="{{URL::to('/css/bootstrap-datetimepicker.css')}}" />

     <script src="{{URL::to('js/jquery-1.10.2.js')}}"></script>
<script src="{{URL::to('js/jquery-ui.js')}}"></script>

    <!-- Add custom CSS here -->
    <link href="{{URL::to('css/sb-admin.css')}}" rel="stylesheet" />
    <link rel="stylesheet" href="{{URL::to('font-awesome/css/font-awesome.min.css')}}" />
    <script type="text/javascript">
        function check_all(input_name, start) {
            master = document.getElementById(input_name);
         
            i = start;
            input_element = input_name + "_"+ i;
            input_obj = document.getElementById(input_element);
            while(input_obj != null)
            {
                input_obj = document.getElementById(input_element);
                input_obj.checked = master.checked;
         
                i = i + 1;
                input_element = input_name + "_"+ i;
                input_obj = document.getElementById(input_element);
            }
        }
         
        function check_parent(parent_id, child_id) {
            if(child_id.checked) {
                parent_id.checked = true;
            }
        }

     </script>
  </head>

  <body style="background: url({{URL::to('/images/bgvo.png')}}) repeat;">
    <div id="wrapper">
     
      <!-- Sidebar -->
      <nav class="navbar navbar navbar-fixed-top" style="background-color: #e0e0e0; height:30px" role="navigation">
      	 	<div class="row">
      	 	<div class="col-md-6">
      	 		<div id="iconcorner"><i class="fa  fa-building-o "></i>  <b>Virtual Office</b></div>
      	 	</div>
      	 	<div class="col-md-6">
      	 		<img id="logocorner" class="pull-right" src="{{URL::to('images/logo.png')}}" />
      	 	</div>
      	 	</div>

        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->

        <nav class="navbar navbar-inverse2" role="navigation"  style="height:54px; margin-top:-5px;">
        		<ul class="nav navbar-nav navbar-right navbar-user"  style="margin-right:0px; margin-top:0px;">
		            <li class="dropdown">
                  <?php
                    $agen = DB::table('sys_agen')
                        ->join('sys_account_agen','account_agen_id','=','agen_id')
                        ->join('sys_member','member_agen_id','=','agen_id')
                        ->where('account_agen_id', Session::get('account_agen_id'))
                        ->first();
                    if($agen->member_picture==""){
                      $gambar = "images/agen/default.png";
                    }else{
                      $gambar = $agen->member_picture;
                    }
                  ?>
		              <a href="#" class="dropdown-toggle" data-toggle="dropdown"><button class="btn bnt-lg btn-users"><img src="{{URL::to($gambar)}}" id="pp" class="img-circle" alt="pp" /> {{Session::get('account_username')}} <b class="caret"></b> </button></a>
		              <ul class="dropdown-menu">
		                <li><a href="{{URL::to('/virtualoffice/profil')}}"><i class="fa fa-user"></i> Profile</a></li>
		                <li><a href="{{URL::to('/virtualoffice/logout')}}"><i class="fa fa-power-off"></i> Log Out</a></li>
		              </ul>
		            </li>
		          </ul>
        </nav>
        <div class="collapse navbar-collapse navbar-ex1-collapse">
          <ul class="nav navbar-nav side-nav" style="margin-top:27px">
               <li class="dropdown"  id="accordion">

		              <a href="{{URL::to('/virtualoffice')}}">
		              <div class="row" style="width:173px; margin-left:-10px"><div class="col-lg-1"><i class="fa fa-home "></i></div><div class="col-lg-9"> Beranda</div></div>
                  </a>
		                   
		              <a href="{{URL::to('/virtualoffice/daftarharga')}}">
		              <div class="row" style="width:173px; margin-left:-10px"><div class="col-lg-1"><i class="fa fa-file-text-o"></i></div><div class="col-lg-9"> Daftar harga</div></div>
		              </a>
		            
 					        <a href="{{URL::to('/virtualoffice/produk')}}">
		              <div class="row" style="width:173px; margin-left:-10px"><div class="col-lg-1"><i class="fa fa-pencil-square-o "></i></div><div class="col-lg-9"> Pesan produk</div></div>
		              </a>

		              <a href="{{URL::to('/virtualoffice/daftarpesanan')}}">
                  <div class="row" style="width:173px; margin-left:-10px"><div class="col-lg-1"><i class="fa fa-list "></i></div><div class="col-lg-9"> Daftar pesanan</div></div>
                  </a>

                   <a href="{{URL::to('/virtualoffice/agen')}}">
                  <div class="row" style="width:173px; margin-left:-10px"><div class="col-lg-1"><i class="fa fa-users "></i></div><div class="col-lg-9"> Agen</div></div>
                  </a>



                  <a href="{{URL::to('/virtualoffice/komisi')}}">
                  <div class="row" style="width:173px; margin-left:-10px"><div class="col-lg-1"><i class="fa fa-money "></i></div><div class="col-lg-9"> Komisi</div></div>
                  </a>


		              <a href="{{URL::to('/virtualoffice/logout')}}">
		              <div class="row" style="width:173px; margin-left:-10px"><div class="col-lg-1"><i class="fa fa-power-off "></i></div><div class="col-lg-9"> Keluar</div></div>
		              </a>



              </li>


          </ul>


          


        </div><!-- /.navbar-collapse -->
       
      </nav>

      <div id="page-wrapper2" style="margin-top:30px">

        @if(Session::has('message'))
          <div class="alert alert-success" align="center">  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          {{Session::get('message')}}
          </div>
        @endif
        
        @if(Session::has('error'))
          <div class="alert alert-danger" align="center">  <button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>
          {{Session::get('error')}}
          </div>
        @endif

      @yield('content')

      </div><!-- /#page-wrapper -->

    
     
      
    </div><!-- /#wrapper -->
 <img id="footer-down" src="{{URL::to('images/ESD Logo - New.png')}}" />
    

    <!-- JavaScript -->
    <script src="{{URL::to('/js/jquery-2.1.1.min.js')}}"></script>
    <script src="{{URL::to('/js/bootstrap-datetimepicker.js')}}"></script>
    <script src="{{URL::to('/js/bootstrap.min.js')}}"></script>
    <script type="text/javascript" src="{{URL::to('/js/moment.js')}}"></script>
    <script type="text/javascript" src="{{URL::to('/js/bootstrap-datetimepicker.js')}}"></script>
    <script src="{{URL::to('/js/highcharts.js')}}"></script>
    <script src="{{URL::to('/js/exporting.js')}}"></script>

     <link rel="stylesheet" href="{{URL::to('css/jquery-ui.css')}}">
    <script src="{{URL::to('js/jquery-ui.js')}}"></script>
   

  </body>
</html>
